﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using Microsoft.Practices.Unity;
using Vit.Web;
using Vit.Web.Mvc;
using Vit.Web.Mvc.Filters;
using Vit.CMS.Controllers;

namespace Vit.PlugIn.Member
{
    public class MembershipFilterRegisteration : ModuleBase
    {
        public MembershipFilterRegisteration(IUnityContainer unity)
            : base(unity)
        {
        }

        #region IModule Members

        public override void RegisterFilters(IFilterRegistry filterRegistry)
        {
            ControllerActionFilterCriteria authorizationtCriteria = new ControllerActionFilterCriteria();
            //authorizationtCriteria.AddMethod<InterfaceController>(o => o.Index());

            filterRegistry.Add(new[] {
                authorizationtCriteria 
            }, typeof(AuthorizationFilter));
        }

        #endregion
    }
}
